package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * erp不存在的sku业务对象 erp_collect_absent_sku
 *
 * @author erp
 * @date 2023-05-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectAbsentSkuBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 订单号
     */
    @NotBlank(message = "订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderId;
    /**
     * 子订单号
     */
    @NotBlank(message = "子订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String childOrderId;

    /**
     * sku编码
     */
    @NotBlank(message = "sku编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String skuCode;

    /**
     * 采集链接
     */
    @NotBlank(message = "采集链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String collectLink;

    /**
     * 状态 0:未采集 , 1:待采集
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
